package com.example.robotwatcher.backend;

import android.view.View;

import androidx.annotation.NonNull;
import androidx.annotation.Nullable;

import com.example.robotwatcher.R;
import com.example.robotwatcher.backend.charts.mLineChart;
import com.github.mikephil.charting.charts.LineChart;

import java.util.ArrayList;
import java.util.Collection;
import java.util.Iterator;
import java.util.List;
import java.util.ListIterator;

public class DataVisualization {

    List<mLineChart> lineChartList;


    public DataVisualization()
    {
        lineChartList = new ArrayList<>();
    }

    public void addLineChart(LineChart chart)
    {
        int Index = lineChartList.size();
        lineChartList.add(new mLineChart(chart,Index));
    }

    public void addData(int type,int index,float value)
    {
        switch (type)
        {
            case 0:
                mLineChart chart = lineChartList.get(index);
                chart.addEntry(value);
        }
    }
}
